//
//  const.swift
//  Little_Day
//
//  Created by laichunhui on 15/9/23.
//  Copyright © 2015年 lch. All rights reserved.
//  全局常量

import UIKit
/// 切换主窗口根控制器通知
let SwitchRootViewControllerNotification = "SwitchRootViewControllerNotification"

let NavigationH: CGFloat = 64
let ScreenWidth: CGFloat = UIScreen.mainScreen().bounds.size.width
let ScreenHeight: CGFloat = UIScreen.mainScreen().bounds.size.height
let ScreenBounds: CGRect = UIScreen.mainScreen().bounds

//登录条高度
let LoginBarH:CGFloat = 49

///  APP导航条barButtonItem文字大小
let NavItemFont: UIFont = UIFont.systemFontOfSize(16)
///  APP导航条titleFont文字大小
let NavTitleFont: UIFont = UIFont.systemFontOfSize(18)
/// ViewController的背景颜色
let GlobalBackgroundColor: UIColor = UIColor.colorWith(235, green: 235, blue: 235, alpha: 1)
/// webView的背景颜色
let WebViewBacagroundColor: UIColor = UIColor.colorWith(245, green: 245, blue: 245, alpha: 1)

/// 友盟分享的APP key
let UMSharedAPPKey: String = "5608de9de0f55afaae0018e6"
/// 自定义分享view的高度
let ShareViewHeight: CGFloat = 215
let GitHubURL: String = "https://github.com/ZhongTaoTian"
let JianShuURL: String = "http://www.jianshu.com/users/5fe7513c7a57/latest_articles"
/// cache文件路径
let cachesPath: String = NSSearchPathForDirectoriesInDomains(.CachesDirectory, .UserDomainMask, true).last!
/// UIApplication.sharedApplication()
let appShare = UIApplication.sharedApplication()
let sinaURL = "http://weibo.com/u/5622363113/home?topnav=1&wvr=6"

/* 阅界请求api */
struct Yuejie {
    /// 获取阅界最新主题
    static let timeline_URLString: String = "http://apiv3.pento.cn/api/v3/stream/topic.json"
   
    /// 根据value获取主题详情
    static let pin_URL = " http://apiv3.pento.cn/api/v3/stream/board/"
}

/// 主题cell重用标识符
let TopicCellRID = "TopicCellReuseID"

/// 主题详情cell重用标识符
let pageCellRID = "pageCellReuseID"
